#!/bin/bash

cd deb_package
find * -type f ! -regex '^DEBIAN/.*' -exec md5sum {} \; > DEBIAN/md5sums

sudo chown -hR root:root *
sudo chmod 644 DEBIAN/control
sudo chmod 644 DEBIAN/md5sums

cd ..

sudo dpkg-deb -b deb_package mobilewifiap-deb-repo/debs/mobilewifiap_0.2_all.deb

lintian mobilewifiap-deb-repo/debs/mobilewifiap_0.2_all.deb

sudo dpkg-scanpackages mobilewifiap-deb-repo/debs /dev/null | gzip > mobilewifiap-deb-repo/Packages.gz


